﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcWiki.Model;

namespace MvcWiki.User
{
    public interface IWikiUserProvider
    {
        bool CanCreateNamespace();
        bool CanIndexNamespaces();
        bool CanEditNamespace(WikiNamespace wikiNamespace);
        bool CanViewNamespace(WikiNamespace wikiNamespace);
        bool CanDeleteNamespace(WikiNamespace wikiNamespace);

        bool CanCreatePage();
        bool CanIndexPages(WikiNamespace wikiNamespace);
        bool CanEditPage(WikiPage wikiPage);
        bool CanViewPage(WikiPage wikiPage);
        bool CanDeletePage(WikiPage wikiPage);
    }
}
